Ext.define('pm.view.Personal.Filter', {
    extend: 'Ext.form.field.Text',
    alias : 'widget.PersonalFilter',

    listeners: {
        scope : this,
        buffer: 50,
        change: function(field, newValue) {
            console.log('a')
            var store = Ext.getStore('Personal')
                //dataview = this.down('dataview');
            
            store.suspendEvents();
            store.clearFilter();
            //dataview.getSelectionModel().clearSelections();
            store.resumeEvents();
            store.filter({
                property: 'name',
                anyMatch: true,
                value   : newValue
            });
        },
    },
    height: '30px',


    initComponent: function() {

        this.callParent(arguments);
    },

});